.class Lcom/estrongs/android/taskmanager/j;
.super Landroid/os/AsyncTask;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/h;

.field private b:Landroid/net/wifi/WifiInfo;

.field private c:Ljava/lang/String;

.field private final synthetic d:Landroid/net/wifi/WifiManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/h;Landroid/net/wifi/WifiManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/j;->d:Landroid/net/wifi/WifiManager;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/j;)Landroid/net/wifi/WifiInfo;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    return-object v0
.end method

.method static synthetic b(Lcom/estrongs/android/taskmanager/j;)Lcom/estrongs/android/taskmanager/h;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    return-object v0
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Void;
    .locals 4

    const/4 v3, 0x0

    const/16 v0, 0x4e20

    :goto_0
    if-gtz v0, :cond_1

    if-gez v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    const v1, 0x7f070003

    invoke-virtual {v0, v1}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/Void;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/j;->publishProgress([Ljava/lang/Object;)V

    :cond_0
    :goto_1
    return-object v3

    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v1}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v1

    iget-object v1, v1, Lcom/estrongs/android/taskmanager/b;->mActivity:Landroid/app/Activity;

    new-instance v2, Lcom/estrongs/android/taskmanager/k;

    invoke-direct {v2, p0}, Lcom/estrongs/android/taskmanager/k;-><init>(Lcom/estrongs/android/taskmanager/j;)V

    invoke-virtual {v1, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v1

    const v2, 0x7f070003

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v1}, Landroid/net/wifi/WifiManager;->getWifiState()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v1

    const v2, 0x7f07005f

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-wide/16 v1, 0x1f4

    :try_start_1
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :goto_2
    add-int/lit16 v0, v0, -0x1f4

    goto :goto_0

    :pswitch_1
    :try_start_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    const v1, 0x7f070060

    invoke-virtual {v0, v1}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/Void;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/j;->publishProgress([Ljava/lang/Object;)V

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_1

    :pswitch_2
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v1

    const v2, 0x7f070061

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    const-wide/16 v1, 0x1f4

    :try_start_3
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_3
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    :goto_3
    add-int/lit16 v0, v0, -0x1f4

    goto/16 :goto_0

    :pswitch_3
    :try_start_4
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v1

    const v2, 0x7f070062

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    invoke-virtual {v1}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    invoke-virtual {v1}, Landroid/net/wifi/WifiInfo;->getIpAddress()I
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-result v1

    const/4 v2, 0x1

    if-ge v1, v2, :cond_3

    :cond_2
    const-wide/16 v1, 0x1f4

    :try_start_5
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_5
    .catch Ljava/lang/InterruptedException; {:try_start_5 .. :try_end_5} :catch_3
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0

    :goto_4
    add-int/lit16 v0, v0, -0x1f4

    goto/16 :goto_0

    :cond_3
    const/4 v0, 0x0

    :try_start_6
    new-array v0, v0, [Ljava/lang/Void;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/j;->publishProgress([Ljava/lang/Object;)V

    goto/16 :goto_1

    :pswitch_4
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    const v1, 0x7f070003

    invoke-virtual {v0, v1}, Lcom/estrongs/android/taskmanager/b;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/Void;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/j;->publishProgress([Ljava/lang/Object;)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    goto/16 :goto_1

    :catch_1
    move-exception v1

    goto :goto_2

    :catch_2
    move-exception v1

    goto :goto_3

    :catch_3
    move-exception v1

    goto :goto_4

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method

.method protected varargs b([Ljava/lang/Void;)V
    .locals 5

    const v4, 0x7f090026

    const v3, 0x7f090025

    const v2, 0x7f070003

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    const v1, 0x7f090024

    invoke-virtual {v0, v1}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->d:Landroid/net/wifi/WifiManager;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->isWifiEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    invoke-virtual {v2}, Landroid/net/wifi/WifiInfo;->getLinkSpeed()I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "Mbps"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/j;->b:Landroid/net/wifi/WifiInfo;

    invoke-virtual {v1}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/j;->a:Lcom/estrongs/android/taskmanager/h;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/h;->a(Lcom/estrongs/android/taskmanager/h;)Lcom/estrongs/android/taskmanager/b;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/estrongs/android/taskmanager/b;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0
.end method

.method protected varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1

    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/taskmanager/j;->a([Ljava/lang/Void;)Ljava/lang/Void;

    move-result-object v0

    return-object v0
.end method

.method protected varargs synthetic onProgressUpdate([Ljava/lang/Object;)V
    .locals 0

    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/estrongs/android/taskmanager/j;->b([Ljava/lang/Void;)V

    return-void
.end method
